class CreatePassages < ActiveRecord::Migration
  def self.up
    create_table :passages do |t|
      t.integer :user_id, :limit => 20, :null => false
      t.boolean :is_a_request, :default => true
      t.text :description
      t.integer :event_id, :limit => 20, :null => false
      t.date :date
      t.timestamps
    end
  end

  def self.down
    drop_table :passages
  end
end
